<template>
	<view>

		<view class="bg-gray -openDoor-body">
			<view class="d-flex a-center j-center" style="height:55vh;background-color: #e7e7e7;">
				其他内容预留
			</view>
		</view>



		<!-- 底部菜单 -->
		<globalMenu ref="gm" @onLoginStatusChange="onLSC" :options="thisOpts" :canOpenDoor="false"></globalMenu>
	</view>
</template>

<script>
	import com from '../common/index.js'
	import globalMenu from '@/components/global-menu.vue'
	export default {
		data() {
			return {
				thisOpts: {},
				loginSuccess: false
			}
		},
		components: {
			globalMenu
		},
		onShow() {
			//更新用户信息
			this.$refs.gm.userDataUpdate()
		},
		onLoad(options) {
			const that = this
			if (uni.getSystemInfoSync().uniPlatform === 'mp-weixin') {
				const data = decodeURIComponent(options.scene).split('?');
				if (data) {
					let ps = com.parseQueryString(data[0])
					console.log('扫码进入', ps);
					that.thisOpts = ps
				}
			}
		},
		methods: {
			onLSC(e) {
				console.log('e:', e)
			},
			goHome() {
				uni.navigateTo({
					url: "/pages/userhome"
				})
			},
		}
	}
</script>

<style>
	.-openDoor-body>view {
		border-radius: 1ex;
	}

	.-openDoor-body {
		position: fixed;
		top: 240px;
		padding: 15px 20px;
		width: calc(100% - 40px);
		height: calc(100vh - 195px);
	}
</style>